package cn.edu.lingnan.springbootlingnanblog.dao;



import cn.edu.lingnan.springbootlingnanblog.entity.BlogType;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface BlogTypeDao {

    public List<BlogType> countList();

    public List<BlogType> list(Map<String,Object> map);

    public Long getTotal(Map<String,Object> map);

    public Integer add(BlogType blogType);

    public Integer update(BlogType blogType);

    public Integer delete(Integer id);

    public Integer getBlogByTypeId(Integer typeId);

    public BlogType getById(Integer id);
}
